<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/jscss/admin/design/">作品管理</a><span class="crumb-step">&gt;</span><span>新增作品</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="{:U('Goods/set')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
                <input type="hidden" name="id" value="{$data.id}">
                <table class="insert-tab" width="100%">
                    <tbody>
                    
                    <tr>
                        <th width="120"><i class="require-red">*</i>标题：</th>
                        <td>
                            <input class="common-text required" id="title" name="title" size="50" value="{$data.title}" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>市场价：</th>
                        <td><input class="common-text" name="price" size="30" type="text" value="{$data.price}"></td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>促销价：</th>
                        <td><input class="common-text" name="saleprice" size="30" type="text" value="{$data.saleprice}"><input class="common-text" name="unit" size="10" type="text" value="元/斤" ></td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>缩略图：</th>
                        <td>
                        <input name="img" id="" type="file">
                        <php>
                            if($data[img]){
                                $src = getImgPath($data[img]);
                                echo "<br><img src='$src' width='100' height='100'>";
                            }
                        </php>
                        </td>
                    </tr>
                    <tr>
                        <th>内容：</th>
                        <td>
<!--                         <textarea name="content" class="common-textarea" id="content" cols="30" style="width: 80%;" rows="10"></textarea>
 -->                        <script id="content" name="content" type="text/plain" style="width:720px">{:htmlspecialchars_decode($data[content])}</script>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody></table>
            </form>
        </div>
    </div>

</div>
<script type="text/javascript"  src="__JS__/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__JS__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
var editor = UE.getEditor('content',{  
    //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个  
    toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','customstyle', 'paragraph', 'fontfamily', 'fontsize', '|','directionalityltr', 'directionalityrtl', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|','link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|','insertimage','preview',]],  
    //focus时自动清空初始化时的内容  
    //autoClearinitialContent:true,  
    //关闭字数统计  
    wordCount:false,  
    //关闭elementPath  
    //elementPathEnabled:true,  
    //默认的编辑区域高度  
    initialFrameHeight:300  
    //更多其他参数，请参考ueditor.config.js中的配置项  
});
</script>